﻿package org.net.DMsg
{
	import com.gowin.Net.Structs.Property;
	
	import flash.utils.IDataInput;
	//.返回道具列表(13)
    //@14(short)|length(short)|count(short)|[propertyname(utf)|descrip(utf)|effID(short)|effValue(short)]|[propertyname(utf)|descrip(utf)|effID(short)|effValue(short)]....#
	public class DMsg14 extends DMsg
	{
		public var properties:Array = new Array();
		
		public function DMsg14()
		{
			id = 14;
		}
		
		public override function read(dis:IDataInput):void
		{
			var nTypes:int = dis.readShort();
			for(var i:int = 0 ; i < nTypes ; i ++)
			{
				var pro:Property = new Property();
				pro.Name = dis.readUTF();
				pro.Description = dis.readUTF();
				pro.EffId = dis.readShort();
				pro.EffValue = dis.readShort();
				properties[i] = pro;
			}
		}
	}
}